#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;
double dfs(int a,long long n)
{
	if (n == 0) return 1.0;
	double temp = dfs(a, n/2);
	if (n % 2 == 1) return temp * temp * a;
	else return temp * temp;
}
double POW(int a,long long n)
{
	if (n < 0) return 1.0 / dfs(a, -n);
	else dfs(a, n);
}
int main()
{
	int a, n;
	cin >> a >> n;
	double sum = POW(a, n);
	cout << sum;
	return 0;
}